#include "backend.h"

  BackEnd::BackEnd(QObject *parent) :
      QObject(parent)
  {
  }

  QString BackEnd::userName()
  {
      qDebug() << "do get userName";
      return m_userName;
  }

  void BackEnd::setUserName(const QString &userName)
  {
      qDebug() << "do setUserName";
      if (userName == m_userName)
          return;

      m_userName = userName;
      emit userNameChanged();
      emit signalTest(12);
      emit signalTest(MyBlack);
  }
